package com.kaili.basic.mapper;

import com.kaili.basic.pojo.dto.MdmCityInfo;
import com.kaili.basic.pojo.entity.MdmCityVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhangjl
 * @Type BaseCityMapper
 * @Desc 杭州凯立通信有限公司
 * @Date 2018年05月18日
 */
@Mapper
public interface BaseCityMapper {

    MdmCityVO getCityId(Long CityId);

    List<MdmCityVO> getAreaByName(MdmCityVO mdmCityVO);

    List<MdmCityVO> getCityName(MdmCityVO mdmCityVO);

    List<MdmCityVO> getProvinceName(MdmCityVO mdmCityVO);

    List<Map> getCounty();

    List<Map> getCity();

    List<Map> getProvince();

    List<Map> getArea();

    MdmCityVO selectCityByName(@Param("name") String name);

    List<MdmCityVO> queryProvinceCityCounty(@Param("name") String name);

    MdmCityInfo getNameById(Map<String,Long> map);

    MdmCityInfo getByCountyId(Map<String,Long> map);
}
